@echo off
echo 开始安装测试依赖...

REM 安装依赖
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pytest==7.4.3 pytest-playwright==0.4.3 playwright==1.40.0 pytest-html==4.1.1 pytest-xdist==3.3.1 allure-pytest==2.13.2

REM 安装浏览器
echo 安装 Playwright 浏览器...
playwright install

REM 运行测试
echo 运行测试...
python run.py %*

echo 测试完成!
pause 